package org.jeecg.modules.semester.service.impl;

import org.jeecg.modules.schoolyear.entity.CouSchoolYear;
import org.jeecg.modules.semester.entity.CouSemester;
import org.jeecg.modules.semester.mapper.CouSemesterMapper;
import org.jeecg.modules.semester.service.ICouSemesterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: cou_semester
 * @author: baochangrong
 * @Date:   2022-02-10
 * @Version: V1.0
 */
@Service
public class CouSemesterServiceImpl extends ServiceImpl<CouSemesterMapper, CouSemester> implements ICouSemesterService {
    @Autowired
    CouSemesterMapper couSemesterMapper;

    /**
     * 学期查询 不分页
     */
    @Override
    public List<CouSemester> listAll(String tenantId) {
        List<CouSemester> couSemesterList = couSemesterMapper.listAll(tenantId);
        return couSemesterList;
    }
    /**
     * 学年查询 不分页
     */
    @Override
    public List<CouSemester> queryIsDefault(CouSemester couSemester) {
        List<CouSemester> couSchoolYearList = couSemesterMapper.queryIsDefault(couSemester);
        return couSchoolYearList;
    }
}
